package com.bookhouse.service.impl;

import com.bookhouse.dao.BaseDao;
import com.bookhouse.dao.BookDao;
import com.bookhouse.entity.Book;
import com.bookhouse.service.BookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by CiusCheung on 16/4/8.
 */
@Service("bookService")
public class BookServiceImpl extends BaseServiceImpl<Book> implements BookService {

    @Resource(name = "bookDao")
    private BookDao bookDao;

    @Override
    protected BaseDao<Book> getDao() {
        return this.bookDao;
    }
}
